import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    name: 'Home',
    path: '/',
    redirect: '/home',
    meta: {
      icon: 'lucide:house',
      order: -1,
      title: '首页',
    },
    children: [
      {
        name: 'HomeIndex',
        path: '/home',
        component: () => import('#/views/dashboard/home/index.vue'),
        meta: {
          title: '首页',
          hideInMenu: true,
          activePath: '/', // 因为不在菜单中显示，所以需要默认激活父级路由
        },
      },
    ],
  },
];

export default routes;
